home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Hot Mix 17
/
Hot Mix 17.iso
/
HM17_SGI
/
.bin
/
showmess
< prev
next >
Wrap
Text File
|
1997-07-22
|
427b
|
23 lines
#!/bin/sh
# Get the time
timesecs="$1"
# Make sure the arguments look right
if [ $# -lt "3" -o "$timesecs" -le 0 ]; then
echo "usage: showmess timesecs xconfirm-messages"
if [ "$timesecs" -le 0 ]; then
echo "the timesecs parameter must be a positive number!"
fi
exit 1
fi
# Shift away the time
shift
# Post the xconfirm
xconfirm "$@" >/dev/null 2>&1 &
procid="$!"
(sleep $timesecs; kill -9 $procid 2>&1) > /dev/null